// part1:C09:ex9.50.2.cpp
// sum of vector<string>.
#include <iostream>
#include <string>
#include <vector>
using namespace std;

int main(void) {
  vector<string> v1 = {"12.3", "-4.56", "+7.8e-2"};
  float sum1 = 0.0;

  for (auto iter = v1.begin(); iter != v1.end(); iter++) {
    sum1 += stof(*iter);
  }
  cout << "sum of vector<string> is : " << sum1 << endl;
  return 0;
}
